package com.xb.loan.encryptor.mina.conf;

import org.apache.mina.filter.codec.ProtocolCodecFactory;


public abstract class MinaConf {
	// 服务名称
	private String name = null;
	// Server IP
	private String serverIp = null;
	// Server prot
	private int port = 0;
	// read and write buffer idle unit is second
	private int bothIdle = 0;
	// read buffer size
	private int readBufSize=0;
	// factory
	private ProtocolCodecFactory protocolCodeFactory = null;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getServerIp() {
		return serverIp;
	}

	public void setServerIp(String serverIp) {
		this.serverIp = serverIp;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public int getBothIdle() {
		return bothIdle;
	}

	public void setBothIdle(int bothIdle) {
		this.bothIdle = bothIdle;
	}
	
	public int getReadBufSize() {
		return readBufSize;
	}

	public void setReadBufSize(int readBufSize) {
		this.readBufSize = readBufSize;
	}

	public ProtocolCodecFactory getProtocolCodeFactory() {
		return protocolCodeFactory;
	}

	public void setProtocolCodeFactory(ProtocolCodecFactory protocolCodeFactory) {
		this.protocolCodeFactory = protocolCodeFactory;
	}

}
